<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE>
<html>
<head>
    <base href="<%=basePath%>">
    <title></title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="stylesheet" type="text/css" href="css/edittable.css"  ></link>
    <link rel="stylesheet" type="text/css" href="css/validate.css"  ></link>
    <script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
</head>
<body>
<div class ="div_title">
    <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>商品查看</span></div>
</div>
<form action="GoodsServlet" method="post" enctype="multipart/form-data">
    <input type="hidden" name="flag" value="add" />
    <table class="edit_table" >
        <tr>
            <td class="td_info">商品名称:</td>	<td class="td_input">
            <input type="text" name="goodsName" id="goodsName" value="${goodsinfo.goodsName}" class="txtbox" disabled/>
        </tr>
        <tr>
            <td class="td_info">所属分类:</td>	<td>
            大分类：<input name="bigCateId" value="${goodsinfo.bigC()}" disabled><br>
            小分类：<input name="smallCateId" value="${goodsinfo.smallC()}" disabled>
        </td>
        </tr>
        <tr>
            <td class="td_info">计量单位:</td>
            <td>
                <input type="text" id="unit"  name="unit" value="${goodsinfo.unit}" class="txtbox" disabled/>
            </td>
        </tr>
        <tr>
            <td class="td_info">商品价格:</td>	<td>
            <input type="text" name="price" value="${goodsinfo.price}" disabled>
        </td>
        </tr>
        <tr>
            <td class="td_info">生产厂商:</td>	<td>
            <input type="text" name="producter" value="${goodsinfo.producter}" disabled>
        </td>
        </tr>
        <tr>
            <td class="td_info">商品图片:</td>
            <td>
                <img src="GoodsServlet?flag=show&id=${goodsinfo.id}" style="width: 200px;height: 150px">
            </td>
        </tr>
        <tr>
            <td class="td_info">备注信息:</td>	<td>
            <textarea rows="7" cols="24" name="des" class="txtarea"  disabled>${goodsinfo.des}</textarea>
        </td>	<td><label>这是内容</label></td>
        </tr>

    </table>
</form>
</body>
</html>
